package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

public class Student {
    @TableId(type = IdType.AUTO)

    private Integer sid;
    private  Integer age;
    private  String sname;

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", age=" + age +
                ", sname='" + sname + '\'' +
                '}';
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Student(Integer age, String sname) {
        this.age = age;
        this.sname = sname;
    }

    public Student() {
    }

    public Student(Integer sid, Integer age, String sname) {
        this.sid = sid;
        this.age = age;
        this.sname = sname;
    }
}
